//
//  PPHttpRequest.h
//  dyseller
//
//  Created by 红喇叭 on 2017/8/10.
//  Copyright © 2017年 红喇叭. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpsState.h"
#import "HttpResponse.h"

@interface PPHttpRequest : NSObject
@property (nonatomic,assign)Requset_Style style;
@property (nonatomic,copy)NSString *requstUrl;
@property (nonatomic,copy)NSDictionary *paramter;
@property(nonatomic,copy)NSArray *imgData;
@property(nonatomic,copy)NSString *fileName;
@property(strong)YYCommCompleteBlock success;
@property(strong)YYCommErrorBlock failure;
@property(retain,nonatomic) HttpResponse *response;
@property(assign,nonatomic)BOOL isActive;

+ (PPHttpRequest *)requestStyle:(Requset_Style)style
                            URL:(NSString *)url
                      parameter:(NSDictionary *)param
                   successBlock:(YYCommCompleteBlock)success
                      failBlock:(YYCommErrorBlock)failure;

+ (PPHttpRequest *)requestStyle:(Requset_Style)style
                            URL:(NSString *)url
                      parameter:(NSDictionary *)param
                   successBlock:(YYCommCompleteBlock)success
                      failBlock:(YYCommErrorBlock)failure
                         active:(BOOL)isactive;

+ (PPHttpRequest *)uploadImages:(Requset_Style)style
                 URL:(NSString *)url
            isactive:(BOOL)active
           imageData:(NSArray *)imageArray
         imgfileName:(NSString *)filename
           parameter:(NSDictionary *)param
        successBlock:(YYCommCompleteBlock)success
           failBlock:(YYCommErrorBlock)failure;

@end
